import {usestore} from '@/stores/index'
import type {ILogininfo} from '@/types/login/Iys'

// export interface Logininfo{
//   token:string
//   tokenExpired:string
//   uid:string
//   userInfo:object
//   permission:any[]
//   menu:{list:any[]}
// }
  export function LoginLocalStorage(res:ILogininfo){
    const stomethre=usestore()
    console.log(stomethre.token)
   let {token,tokenExpired}=res
   localStorage.setItem('token',token)
   localStorage.setItem('tokenExpired',tokenExpired)
   stomethre.usertoken(res)
  //  store.GSJ_UID(uid)
  //  store.GSJ_INFO(userInfo)
  //  store.GSJ_permission(permission)
  //  store.GSJ_menu(menu)
  } 